package com.bdqn.service;

import com.bdqn.mapper.SysRoleMapper;
import com.bdqn.pojo.SysRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
@Service("sysRoleService")
public class SysRoleServiceImpl implements SysRoleService{
    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> list(String roleName) {
        return sysRoleMapper.list(roleName);
    }

    @Override
    public boolean add(SysRole sysRole) {
        sysRoleMapper.add(sysRole);
        return true;
    }
}
